package com.lhy.service.impl;

import com.lhy.dao.PaymentDetailsDao;
import com.lhy.domain.PaymentDetails;
import com.lhy.service.PaymentDetailsService;
import com.lhy.utils.Pagination;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 汪
 */
@Service
public class PaymentDetailsServiceImpl implements PaymentDetailsService {
    @Autowired
    PaymentDetailsDao paymentDetailsDao;
    @Override
    public List<PaymentDetails> showAllPaymentDetails() {
        return paymentDetailsDao.showAllPaymentDetails();
    }

    @Override
    public List<PaymentDetails> findSomePaymentDetails(Pagination<PaymentDetails> page) {
        return paymentDetailsDao.findSomePaymentDetails(page);
    }
}
